package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WorkReportMapper;
import com.ruoyi.system.domain.WorkReport;
import com.ruoyi.system.service.IWorkReportService;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-03-26
 */
@Service
public class WorkReportServiceImpl implements IWorkReportService 
{
    @Autowired
    private WorkReportMapper workReportMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public WorkReport selectWorkReportById(Long id)
    {
        return workReportMapper.selectWorkReportById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param workReport 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<WorkReport> selectWorkReportList(WorkReport workReport)
    {
        return workReportMapper.selectWorkReportList(workReport);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param workReport 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertWorkReport(WorkReport workReport)
    {
        return workReportMapper.insertWorkReport(workReport);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param workReport 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateWorkReport(WorkReport workReport)
    {
        return workReportMapper.updateWorkReport(workReport);
    }

    /**
     * 删除【请填写功能名称】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWorkReportByIds(String ids)
    {
        return workReportMapper.deleteWorkReportByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteWorkReportById(Long id)
    {
        return workReportMapper.deleteWorkReportById(id);
    }
}
